
#ifndef FATAL_ERRORS_H

#define FATAL_ERRORS_H

#define ICE_ALLOC_LOG_TRACE 0x00001002
#define ICE_ALLOC_LOG_DEBUG 0x00001003

#define ICE_ALLOC_MAIN_CONTAINER 0x00001004

#define ICE_ALLOC_ERROR_REPORT 0x00001008
#define ICE_ALLOC_FLAG_CHECKER 0x00001009
#define ICE_ALLOC_FILE_LOADER 0x0000100A


#define ICE_PARSING_ARGUMENTS_FAILED 0x00001021
#define ICE_LOADING_FILES 0x00001022
#define ICE_DEBUG_OUTPUT_LOADED_FILES 0x00001023

#define ICE_ALLOC_LEXIC_ANALYZER 0x00001041
#define ICE_LEXIC_ANALYSIS_FAILURE 0x00001042
#define ICE_LEXIC_ANALYSIS_DEBUG_OUTPUT_FAILURE 0x00001043

#define ICE_ALLOC_SYNTAX_PARSER 0x00001061
#define ICE_SYNTAX_ANALYSIS_FAILURE 0x00001062
#define ICE_SYNTAX_ANALYSIS_DEBUG_OUTPUT_FAILURE 0x00001063
#define ICE_SYNTAX_PARENTS_CHILDREN_CONNECTIONS 0x00001069

#define ICE_ALLOC_SEMANTIC_ANALYZER 0x00001081
#define ICE_SEMANTICS_REORGANIZATION 0x00001082
#define ICE_SEMANTIC_STRUCTURES_DEBUG_OUTPUT_FAILURE 0x00001083
#define ICE_SEMANTICS_FLATTEN_HIERARCHY 0x00001084
#define ICE_SEMANTICS_FILL_NAMES 0x00001085
#define ICE_SEMANTIC_STRUCTURES_FLATTEN_DEBUG_OUTPUT_FAILURE 0x00001086


#define ICE_SEMANTICS_VERIFICATION 0x00001091


#define ICE_CODE_GENERATION 0x000010A1



void ReportCompilerInternalError(unsigned long code);
void ReportCompilerInternalError(unsigned long code, char * str);


#endif
